﻿using System.Runtime.InteropServices;

namespace Mrsoft.Model
{
    public class MenPai
    {
        public MenPai(int myMenPaiID)
        {
            MyMenPai = (MenPaiSet)myMenPaiID;
            switch (MyMenPai)
            {

                case MenPaiSet.少林:
                    IsJinZhan = true;
                    FirstSkill = new Skill(false, 0x119, 0, true);
                    SpeedSkill = new Skill(false, 0x11c, 63);
                    break;
                case MenPaiSet.明教:
                    IsJinZhan = true;
                    FirstSkill = new Skill(false, 0x137, 0, true);
                    SpeedSkill = new Skill(false, 0x13a, 63);
                    break;
                case MenPaiSet.丐帮:
                    IsJinZhan = true;
                    FirstSkill = new Skill(false, 0x155, 0, true);
                    SpeedSkill = new Skill(false, 0x158, 63);
                    break;
                case MenPaiSet.武当:
                    FirstSkill = new Skill(false, 0x173, 0, true);
                    break;
                case MenPaiSet.峨眉:
                    FirstSkill = new Skill(false, 0x191, 0, true);
                    break;
                case MenPaiSet.星宿:
                    FirstSkill = new Skill(false, 0x1af, 0, true);
                    break;
                case MenPaiSet.天龙:
                    FirstSkill = new Skill(false, 0x1cd, 0, true);
                    SpeedSkill = new Skill(false, 0x1d0, 123);
                    break;
                case MenPaiSet.天山:
                    IsJinZhan = true;
                    FirstSkill = new Skill(false, 0x1eb, 0, true);
                    SpeedSkill = new Skill(false, 0x1ee, 33);
                    break;
                case MenPaiSet.逍遥:
                    FirstSkill = new Skill(false, 0x209, 0, true);
                    break;
                case MenPaiSet.慕容:
                    IsJinZhan = true;
                    FirstSkill = new Skill(false, 0x2F8, 0, true);
                    SpeedSkill = new Skill(false, 0x2fc, 33);
                    break;
                case MenPaiSet.唐门:
                    IsJinZhan = false;
                    FirstSkill = new Skill(false, 0xB54, 0, true);
                    break;
            }
        }
        public bool IsJinZhan { private set; get; }
        public Skill FirstSkill;
        public Skill SpeedSkill;
        public MenPaiSet MyMenPai { private set; get; }
    }


    public enum MenPaiSet : byte
    {
        少林 = 1,
        明教 = 2,
        丐帮 = 3,
        武当 = 4,
        峨眉 = 5,
        星宿 = 6,
        天龙 = 7,
        天山 = 8,
        逍遥 = 9,
        慕容 = 0x20,
        唐门 = 37,
    }

}
